{% extends "base.html" %}
{% load i18n %}

{% block title %}{% trans "Latest entries" %}{% endblock title %}
{%block hier %} Blog{%endblock hier %}
{% block content %}
   {% if latest %}
      {% for entry in latest %}
        <h1 class="ptitle"><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></h1>
        <div class="descr">{{ entry.publication_date|date:"Y/m/d @ H:i:s" }}, by {{ entry.author.username }}, on {{ entry.category.name }}</div>
        <p> {{ entry.body|safe }}</p>
        <div class="readmore" ><a href="{{ entry.get_absolute_url }}">read more ...</a></div>
      {% endfor %}
      {% load webdesign %} 
        <h1 class="ptitle"><a href="/#">{% lorem 3 w random  %} </a></h1>
        <div class="descr">2011/08/16 @ 12:00:31, by asmin, on web</div>
        <p> {% lorem 2 p random   %}</p>
        <div class="readmore" ><a href="/#">read more ...</a></div>
     
        <h1 class="ptitle"><a href="/#">{% lorem 3 w random  %} </a></h1>
        <div class="descr">2011/08/16 @ 12:00:31, by asmin, on web</div>
        <p> {% lorem 2 p random   %}</p>
        <div class="readmore" ><a href="/#">read more ...</a></div>
     
  {% else %}
      <div class="article">
         <h2><span>{% trans "Latest entries" %}</span></h2>
         <p><strong>{% trans "No entry yet" %}.</strong></p>
      </div> <!-- /article -->
  {% endif %}
{% endblock content %}
